export const openModal = (name) => {
    let modal = null;
  
    if (!modal) {
      var modalElement = document.getElementById(name);
      modal = new bootstrap.Modal(modalElement);
    }
  
    modal.show();
  };